package com.yyy.dm.consumer.feign.order;

import com.yyy.dm.order.DMOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

@FeignClient("DM-SERVICE-ORDER")
public interface DMOrderFeign {

    @PostMapping("/findOrderByOrderNo")
    DMOrder findOrderByOrderNo(@RequestBody String orderNo);

    @PostMapping("/updateOrder")
    Integer updateOrder(@RequestBody Map<String,String> map);
}
